.class public Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;
.super Landroid/widget/FrameLayout;
.source "SnippetSeekBarContainer.java"


# instance fields
.field private a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

.field private b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

.field private c:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;

.field private d:I

.field private e:J


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 2

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x0

    .line 4
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->d:I

    const-wide/16 v0, 0x0

    .line 5
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->e:J

    .line 6
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-direct {v0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/ui/b;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    .line 7
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-direct {v0, p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    new-instance p2, Lcom/esfile/screen/recorder/videos/edit/ui/a;

    invoke-direct {p2, p0}, Lcom/esfile/screen/recorder/videos/edit/ui/a;-><init>(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;)V

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setOnOffsetChangeListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$e;)V

    return-void
.end method


# virtual methods
.method public a(J)J
    .locals 1

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->a(J)J

    move-result-wide p1

    return-wide p1
.end method

.method public a(JJ)J
    .locals 1

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->a(JJ)J

    move-result-wide p1

    return-wide p1
.end method

.method public a(I)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;
    .locals 1

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->a(I)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    move-result-object p1

    return-object p1
.end method

.method public a()V
    .locals 7

    .line 14
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->d:I

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;

    invoke-interface {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;->getCount()I

    move-result v1

    mul-int v0, v0, v1

    .line 15
    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->e:J

    const/high16 v3, 0x3f800000    # 1.0f

    const-wide/16 v4, 0x0

    cmp-long v6, v1, v4

    if-lez v6, :cond_0

    int-to-float v0, v0

    mul-float v0, v0, v3

    long-to-float v1, v1

    div-float v3, v0, v1

    .line 16
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, v3}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setRatio(F)V

    return-void
.end method

.method public a(III)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setMaskHeight(I)V

    .line 2
    iput p3, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->d:I

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-virtual {v0, p3}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;->setItemWidth(I)V

    .line 4
    new-instance p3, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v0, -0x1

    invoke-direct {p3, v0, p2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 p2, 0x51

    .line 5
    iput p2, p3, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    const/4 p2, 0x4

    .line 6
    iput p2, p3, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    .line 7
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-virtual {p2}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;

    move-result-object p2

    if-nez p2, :cond_0

    .line 8
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-virtual {p0, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-virtual {p0, p2, p3}, Landroid/widget/FrameLayout;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 10
    :goto_0
    new-instance p2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {p2, v0, p1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    if-nez p1, :cond_1

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {p0, p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_1

    .line 13
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {p0, p1, p2}, Landroid/widget/FrameLayout;->updateViewLayout(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_1
    return-void
.end method

.method public a(JJJ)V
    .locals 7

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    move-wide v1, p1

    move-wide v3, p3

    move-wide v5, p5

    invoke-virtual/range {v0 .. v6}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->a(JJJ)V

    return-void
.end method

.method public b()I
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->b()I

    move-result v0

    return v0
.end method

.method public b(I)I
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->b(I)I

    move-result p1

    return p1
.end method

.method public b(J)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->b(J)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    move-result-object p1

    return-object p1
.end method

.method public b(JJ)Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->b(JJ)Z

    move-result p1

    return p1
.end method

.method public c()V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;->a()V

    return-void
.end method

.method public synthetic c(I)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V

    return-void
.end method

.method public c(J)Z
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->c(J)Z

    move-result p1

    return p1
.end method

.method public d(J)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->d(J)V

    return-void
.end method

.method public e(J)Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->e(J)Z

    move-result p1

    return p1
.end method

.method public getAllSnippets()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/edit/ui/b$g;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->getAllSnippets()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public getCenterSnippets()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/edit/ui/b$g;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->getCenterSnippets()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public getSelectedSnippet()Lcom/esfile/screen/recorder/videos/edit/ui/b$g;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->a()Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    move-result-object v0

    return-object v0
.end method

.method public setCenterSnippetListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$b;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setCenterSnippetListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$b;)V

    return-void
.end method

.method public setCenterValueChangeListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$c;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setCenterValueChangeListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$c;)V

    return-void
.end method

.method public setDecoration(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;)V
    .locals 1

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView;->setDecoration(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;)V

    return-void
.end method

.method public setDuration(J)V
    .locals 1

    .line 1
    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->e:J

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setMaxValue(J)V

    return-void
.end method

.method public setNeedOccupyChecker(Z)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setNeedOccupyChecker(Z)V

    return-void
.end method

.method public setSlideListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$f;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setSlideListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$f;)V

    return-void
.end method

.method public setSnippetSeekBarCenterValue(J)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a:Lcom/esfile/screen/recorder/videos/edit/ui/b;

    invoke-virtual {v0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/ui/b;->setCenterNeedleValue(J)V

    return-void
.end method
